<?php

function restaurant_offer_edit_page($oid){
    $object=db_select('ep_offers', 'o')
    ->fields('o')
    ->condition('oid',$oid,'=')
    ->execute()
    ->fetchObject();
    
    return drupal_render(drupal_get_form('restaurant_offer_upload_form',$object));
}